<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  
  <!-- 1. 添加React依赖 -->
  <script crossorigin src="https://unpkg.com/react@18.3.1/umd/react.development.js"></script>
  <script crossorigin src="https://unpkg.com/react-dom@18.3.1/umd/react-dom.development.js"></script>
  <script crossorigin src="https://unpkg.com/babel-standalone@6.26.0/babel.min.js"></script>

  <div id="root"></div>

  <script type="text/babel">
    // not strict
    // class App {
    //   constructor() {

    //   }
    //   render () {
    //     console.log(this)
    //   }
    // }
    // const app = new App()
    // const render = app.render()
    // render()
    
    function render () {
      console.log(this)
    }
    console.log(render())
  </script>
</body>
</html>